/**
 * @author SilverBiology, LLC
 * @website http://code.google.com/p/gbif-spreadsheet-processor/
*/
Ext.namespace('GBIF');
Ext.namespace('GBIF.GeoSpatial')

GBIF.GeoSpatial.Container=function(config){
	
	this.availablelayertree = new GBIF.GeoSpatial.AvailableLayersTree({
			region: 'north'
		,	height: 200
		,	split: true
		,	autoScroll: true
		,	cls:'x-tree-noicon'
		, itemId:'availablelayertree'
		,	rootVisible:false
		,	rootExpanded:true 
	});

	this.layerstree = new GBIF.GeoSpatial.LayersTree({
			region: 'center'
		,	autoScroll: true	
		,	itemId: 'layertree'
		,	minHeight: 100
	});

	Ext.apply(this,config,{
			layout: Config.GBIF.GeoSpatial.Container.layout
		,	defaults: {
				border: false
			}
		,	items: [
					this.availablelayertree
				,	this.layerstree
			]
	});

	GBIF.GeoSpatial.Container.superclass.constructor.call(this,config);
}

Ext.extend(GBIF.GeoSpatial.Container, Ext.Container, {});